/**
 * 获取时间公共方法
 * startYear
 * endYear 结束年份 null为当前年份
 */
export default function addYearArr() {
  const yearArr = [];
  const nowYear = new Date().getFullYear();
  for (let int = nowYear - 100; int <= nowYear; int++) {
    yearArr.push({ label: int, value: int });
  }
  return yearArr.reverse();
}
